.class abstract Les/fu$e;
.super Ljava/lang/Object;
.source "SearchAdvancedConditionDialog.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Les/fu;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x400
    name = "e"
.end annotation


# instance fields
.field protected a:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field protected b:Landroid/widget/TextView;

.field protected c:I

.field protected d:I

.field private e:I

.field private f:I

.field final synthetic g:Les/fu;


# direct methods
.method constructor <init>(Les/fu;Landroid/widget/TextView;II)V
    .locals 1

    .line 1
    iput-object p1, p0, Les/fu$e;->g:Les/fu;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput v0, p0, Les/fu$e;->c:I

    .line 3
    iput p4, p0, Les/fu$e;->d:I

    .line 4
    new-instance p4, Ljava/util/ArrayList;

    invoke-direct {p4}, Ljava/util/ArrayList;-><init>()V

    iput-object p4, p0, Les/fu$e;->a:Ljava/util/List;

    .line 5
    invoke-static {p1}, Les/fu;->e(Les/fu;)Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0, p3}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;

    move-result-object p3

    invoke-static {p3}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object p3

    invoke-interface {p4, p3}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 6
    new-instance p3, Les/fu$e$a;

    invoke-direct {p3, p0, p1, p2}, Les/fu$e$a;-><init>(Les/fu$e;Les/fu;Landroid/widget/TextView;)V

    .line 7
    invoke-virtual {p2}, Landroid/widget/TextView;->getParent()Landroid/view/ViewParent;

    move-result-object p1

    check-cast p1, Landroid/widget/LinearLayout;

    if-eqz p1, :cond_0

    .line 8
    invoke-virtual {p1, p3}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto :goto_0

    .line 9
    :cond_0
    invoke-virtual {p2, p3}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 10
    :goto_0
    iget-object p1, p0, Les/fu$e;->a:Ljava/util/List;

    invoke-interface {p1}, Ljava/util/List;->size()I

    .line 11
    iput-object p2, p0, Les/fu$e;->b:Landroid/widget/TextView;

    return-void
.end method

.method static synthetic a(Les/fu$e;)I
    .locals 0

    .line 1
    iget p0, p0, Les/fu$e;->e:I

    return p0
.end method

.method static synthetic a(Les/fu$e;I)I
    .locals 0

    .line 2
    iput p1, p0, Les/fu$e;->e:I

    return p1
.end method

.method static synthetic b(Les/fu$e;)I
    .locals 0

    .line 1
    iget p0, p0, Les/fu$e;->f:I

    return p0
.end method

.method static synthetic b(Les/fu$e;I)I
    .locals 0

    .line 2
    iput p1, p0, Les/fu$e;->f:I

    return p1
.end method


# virtual methods
.method protected a()I
    .locals 1

    .line 3
    iget-object v0, p0, Les/fu$e;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method protected a([Ljava/lang/String;Ljava/lang/String;II)Lcom/estrongs/android/ui/dialog/q$n;
    .locals 7

    .line 4
    iget-object v0, p0, Les/fu$e;->g:Les/fu;

    invoke-static {v0}, Les/fu;->e(Les/fu;)Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0c0301

    const/4 v2, 0x0

    .line 5
    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    const v1, 0x7f090a40

    .line 6
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    const v2, 0x7f090a3e

    .line 7
    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    .line 8
    array-length v3, p1

    const/4 v4, 0x1

    if-lez v3, :cond_0

    .line 9
    array-length v3, p1

    sub-int/2addr v3, v4

    iput v3, p0, Les/fu$e;->e:I

    .line 10
    array-length v3, p1

    sub-int/2addr v3, v4

    iput v3, p0, Les/fu$e;->f:I

    .line 11
    :cond_0
    new-instance v3, Les/fu$e$b;

    invoke-direct {v3, p0, p1, v2}, Les/fu$e$b;-><init>(Les/fu$e;[Ljava/lang/String;Landroid/widget/Button;)V

    invoke-virtual {v2, v3}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 12
    iget v3, p0, Les/fu$e;->e:I

    aget-object v3, p1, v3

    invoke-virtual {v2, v3}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 13
    new-instance v2, Les/fu$e$c;

    invoke-direct {v2, p0, p1, v1}, Les/fu$e$c;-><init>(Les/fu$e;[Ljava/lang/String;Landroid/widget/Button;)V

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 14
    iget v2, p0, Les/fu$e;->f:I

    aget-object v2, p1, v2

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    const v1, 0x7f090a3d

    .line 15
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/EditText;

    const v2, 0x7f090a3c

    .line 16
    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/EditText;

    const-string v3, ""

    const/4 v5, -0x1

    if-le p3, v5, :cond_1

    .line 17
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v6, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p3

    invoke-virtual {v1, p3}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    :cond_1
    if-le p4, v5, :cond_2

    .line 18
    new-instance p3, Ljava/lang/StringBuilder;

    invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p3, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3, p4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p3

    invoke-virtual {v2, p3}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 19
    :cond_2
    new-instance p3, Lcom/estrongs/android/ui/dialog/q$n;

    iget-object p4, p0, Les/fu$e;->g:Les/fu;

    invoke-static {p4}, Les/fu;->e(Les/fu;)Landroid/content/Context;

    move-result-object p4

    invoke-direct {p3, p4}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    .line 20
    invoke-virtual {p3, p2}, Lcom/estrongs/android/ui/dialog/q$n;->b(Ljava/lang/CharSequence;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 21
    invoke-virtual {p3, v0}, Lcom/estrongs/android/ui/dialog/q$n;->a(Landroid/view/View;)Lcom/estrongs/android/ui/dialog/q$n;

    const p2, 0x7f11029e

    .line 22
    new-instance p4, Les/fu$e$f;

    invoke-direct {p4, p0, v1, v2, p1}, Les/fu$e$f;-><init>(Les/fu$e;Landroid/widget/EditText;Landroid/widget/EditText;[Ljava/lang/String;)V

    invoke-virtual {p3, p2, p4}, Lcom/estrongs/android/ui/dialog/q$n;->b(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    const p1, 0x7f110299

    new-instance p2, Les/fu$e$e;

    invoke-direct {p2, p0}, Les/fu$e$e;-><init>(Les/fu$e;)V

    .line 23
    invoke-virtual {p3, p1, p2}, Lcom/estrongs/android/ui/dialog/q$n;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 24
    invoke-virtual {p3, v4}, Lcom/estrongs/android/ui/dialog/q$n;->a(Z)Lcom/estrongs/android/ui/dialog/q$n;

    new-instance p1, Les/fu$e$d;

    invoke-direct {p1, p0}, Les/fu$e$d;-><init>(Les/fu$e;)V

    .line 25
    invoke-virtual {p3, p1}, Lcom/estrongs/android/ui/dialog/q$n;->a(Landroid/content/DialogInterface$OnCancelListener;)Lcom/estrongs/android/ui/dialog/q$n;

    return-object p3
.end method

.method abstract a(ILjava/lang/Object;)V
.end method

.method protected a(ILjava/lang/String;ILjava/lang/String;)V
    .locals 2

    const-string v0, " "

    if-lez p1, :cond_0

    .line 26
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    goto :goto_0

    :cond_0
    const-string p1, ""

    .line 27
    :goto_0
    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, " - "

    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    if-lez p3, :cond_1

    .line 28
    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 29
    :cond_1
    iget-object p2, p0, Les/fu$e;->a:Ljava/util/List;

    invoke-interface {p2}, Ljava/util/List;->size()I

    move-result p3

    add-int/lit8 p3, p3, -0x1

    invoke-interface {p2, p3, p1}, Ljava/util/List;->add(ILjava/lang/Object;)V

    .line 30
    invoke-virtual {p0}, Les/fu$e;->a()I

    move-result p1

    add-int/lit8 p1, p1, -0x2

    iput p1, p0, Les/fu$e;->c:I

    .line 31
    iget-object p2, p0, Les/fu$e;->b:Landroid/widget/TextView;

    iget-object p3, p0, Les/fu$e;->a:Ljava/util/List;

    invoke-interface {p3, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/CharSequence;

    invoke-virtual {p2, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method
